package com.yeyks.commonReference.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;

import java.io.Serializable;
import java.util.List;

@ApiModel(description = "修改账号")
@Data
public class UpdateSysUserDTO implements Serializable {

    private static final long serialVersionUID = 3477626791617135599L;

    @ApiModelProperty(value = "用户id",required = true)
    private Long id;

    @ApiModelProperty(value = "姓名",required = true)
    @NotBlank(message="姓名不能为空")
    private String name;

    @ApiModelProperty(value = "手机",required = true)
    @NotBlank(message="手机不能为空")
    private String phone;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty(value = "账号",required = true,hidden = true)
    @NotBlank(message="账号不能为空")
    private String username;

    @ApiModelProperty("角色")
    private List<Long> roleIdList;

}
